package software_construction.OOProject.d3_abstract_demo1;

public abstract class Card {
    private String userName;
    private Double balance;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public Card() {
    }

    public Card(String userName, Double balance) {
        this.userName = userName;
        this.balance = balance;
    }

    public abstract void pay(Double money);
}
